import Vue from 'vue'
import Router from 'vue-router'

import Home from '../pages/Home.vue'
import Trip from '../pages/Trip.vue'
import Hunter from '../pages/Hunter.vue'


import HunterHome from '../pages/hunter/Home.vue'
import Getmore from '../pages/hunter/Getmore.vue'
import Proinfo from '../pages/hunter/Proinfo.vue'
import Price from '../pages/hunter/Price.vue'
import Map from '../pages/hunter/Map.vue'
import Dingdan from '../pages/hunter/Dingdan.vue'
import Login from '../pages/hunter/Login.vue'
import ByPhone from '../pages/hunter/ByPhone.vue'
import Regist from '../pages/hunter/Regist.vue'
import Person from '../pages/hunter/Person.vue'
import Submit from '../pages/hunter/Submit.vue'
import MyOrder from '../pages/hunter/MyOrder.vue'
import OrderDetail from '../pages/hunter/OrderDetail.vue'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path:'/',
      component:Home
    },
    {
      path:'/trip',
      component:Trip
    },
    {
      path:'/hunter',
      component:Hunter,
      children:[
        {
          path:'/',
          component:HunterHome
        },
        {
          path:'/getmore',
          component:Getmore
        },
        {
          path:'/hunter/proinfo',
          component:Proinfo
        },
        {
          path:'/hunter/price',
          component:Price
        },
        {
          path:'/hunter/map',
          component:Map
        },
        {
          path:'/hunter/dingdan',
          component:Dingdan
        },
        {
          path:'/hunter/login',
          component:Login
        },
        {
          path:'/hunter/login/byphone',
          component:ByPhone
        },
        {
          path:'/hunter/login/regist',
          component:Regist
        },
        {
          path:'/hunter/person',
          component:Person
        },
        {
          path:'/hunter/person/myorder',
          component:MyOrder
        },
        {
          path:'/hunter/dingdan/myorder/msg',
          component:OrderDetail
        },
        {
          path:'/hunter/dingdan/submit',
          component:Submit
        },
        
      ]
    },
  ]
})
